package com.zyark.web.util;

/**
 * ClassName: ControllerUtils  <br/>
 * Function:  <br/>
 * Reason:  <br/>
 * Date: 2017-05-25 10:43 <br/>
 *
 * @author Ku_ker
 * @version 1.0
 * @JDK 1.7
 */
public class ControllerUtils {

    /**
     * session的键:登录微信传过来的Code
     */
    public static final String SESSION_CODE = "code";

    /**
     * session的键:微信用户的openId
     */
    public static final String SESSION_OPENID = "openId";

    /**
     * session的键:用户
     */
    public static final String SESSION_USER = "user";

    /**
     * session的键:新装选择的套餐编号
     */
    public static final String SESSION_PACKAGEID = "packageId";

    /**
     * session的键:选择的营业厅
     */
    public static final String SESSION_ORGID = "orgId";

    /**
     * session的键:选择的多个设备的编号
     */
    public static final String SESSION_DEVICEIDS = "deviceIds";

    /**
     * session的键:选择的要评价的宽带订单编号
     */
    public static final String SESSION_COMMENT_HALLORDERID = "commentHallOrderId";

    /**
     * session的键:选择的要新装完成的宽带订单编号
     */
    public static final String SESSION_DECORATION_COMPLETE_HALLORDERID = "decorationCompleteHallOrderId";

    /**
     * session的键:选择的要维修完成的宽带订单编号
     */
    public static final String SESSION_MAINTENANCE_COMPLETE_HALLORDERID = "maintenanceCompleteHallOrderId";

    /**
     * session的键:选择的要配送完成的换卡服务订单编号
     */
    public static final String SESSION_PHONE_COMPLETE_HALLORDERID = "phoneCompleteHallOrderId";

    /**
     * session的键:选择的手机号码编号
     */
    public static final String SESSION_SELECT_PHONEID = "phoneId";

    /**
     * session的键:选择的手要接受订单的订单编号
     */
    public static final String SESSION_ACCEPT_HALLORDERID = "acceptHallOrderId";

    /**
     * session的键:换卡所选择的套餐编号
     */
    public static final String SESSION_PHONE_SELECT_PACKAGEID = "phoneSelectPackageId";

    /**
     * session的键:续费所选择的套餐编号
     */
    public static final String SESSION_RENEWAL_SELECT_PACKAGEID = "renewalSelectPackageId";

    /**
     * session的键:商店
     */
    public static final String SESSION_SHOP = "shop";

    /**
     * 存在session的地址
     */
    public static final String SESSION_ADDRESS = "address";

    /**
     * session的键:用户选择的商店
     */
    public static final String SESSION_SELECT_SHOPID = "selectShopId";

    /**
     * session的键:用户选择要评价的订单编号
     */
    public static final String SESSION_SELECT_COMMENT_GOODSORDERID = "selectCommentGoodsOrderId";

    /**
     * session的键:申请成为商家时发送的短信验证码
     */
    public static final String SESSION_CAPTCHA = "captcha";

    /**
     * session的键:选择支付的订单编号
     */
    public static final String SESSION_SELECT_PAYORDERID = "selectPayOrderId";

    /**
     * session的键：选择兑换的积分商品
     */
    public static final String SESSION_SELECT_INTEGRAL_GOODS = "integralGoods";

    /**
     * 错误页面
     */
    public static final String PAGE_ERROR = "/page/404";

    public static Integer initInteger(Integer page, Integer initSize) {

        if (page == null) {
            page = initSize;
        }
        return page;
    }
}
